/* eslint-disable */
// @ts-ignore
import request from '@/utils/http';

import * as API from './types';

/** 核实身份 POST /new/authUser/check */
export async function openApiNewAuthUserCheckUsingPost({
  body,
  options,
}: {
  body: API.NewAuthUserBoNewAuthUserCheck;
  options?: { [key: string]: unknown };
}) {
  return request<API.RBoolean>('/new/authUser/check', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 已认证人员总数 POST /new/authUser/countData */
export async function openApiNewAuthUserCountDataUsingPost({
  options,
}: {
  options?: { [key: string]: unknown };
}) {
  return request<API.RLong>('/new/authUser/countData', {
    method: 'POST',
    ...(options || {}),
  });
}

/** 删除 POST /new/authUser/delData */
export async function openApiNewAuthUserDelDataUsingPost({
  body,
  options,
}: {
  body: API.NewAuthUserBoNewAuthUserDelData;
  options?: { [key: string]: unknown };
}) {
  return request<API.RBoolean>('/new/authUser/delData', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 下载认证信息 GET /new/authUser/downloadExcel */
export async function openApiNewAuthUserDownloadExcelUsingGet({
  options,
}: {
  options?: { [key: string]: unknown };
}) {
  return request<unknown>('/new/authUser/downloadExcel', {
    method: 'GET',
    ...(options || {}),
  });
}

/** 导入认证信息 字段：file POST /new/authUser/importExcel */
export async function openApiNewAuthUserImportExcelUsingPost({
  body,
  options,
}: {
  body: API.OpenApiNewAuthUserImportExcelUsingPostBody;
  options?: { [key: string]: unknown };
}) {
  return request<API.RBoolean>('/new/authUser/importExcel', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 分页查询 POST /new/authUser/pageData */
export async function openApiNewAuthUserPageDataUsingPost({
  body,
  options,
}: {
  body: API.NewAuthUserBoNewAuthUserPageData;
  options?: { [key: string]: unknown };
}) {
  return request<API.RPageDataVoNewAuthUserVo>('/new/authUser/pageData', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 添加 POST /new/authUser/saveData */
export async function openApiNewAuthUserSaveDataUsingPost({
  body,
  options,
}: {
  body: API.NewAuthUserBoNewAuthUserSaveData;
  options?: { [key: string]: unknown };
}) {
  return request<API.RLong>('/new/authUser/saveData', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 各平台-已认证人员总数 POST /new/authUser/statisticsToPlatform */
export async function openApiNewAuthUserStatisticsToPlatformUsingPost({
  options,
}: {
  options?: { [key: string]: unknown };
}) {
  return request<API.RListNewAuthUserStatisticsVo>(
    '/new/authUser/statisticsToPlatform',
    {
      method: 'POST',
      ...(options || {}),
    }
  );
}

/** 修改 POST /new/authUser/updateData */
export async function openApiNewAuthUserUpdateDataUsingPost({
  body,
  options,
}: {
  body: API.NewAuthUserBoNewAuthUserUpdateData;
  options?: { [key: string]: unknown };
}) {
  return request<API.RBoolean>('/new/authUser/updateData', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
